﻿package com.tudou.home.newskin.buttons
{
    import com.tudou.skin.*;
    import com.tudou.utils.*;

    public class TimeSprite extends TimeMC implements ITime
    {
        private var playTime:String;
        private var totalTime:String;

        public function TimeSprite()
        {
            var _loc_1:Boolean = false;
            this.mouseChildren = false;
            this.mouseEnabled = _loc_1;
            setTotalTime(0);
            setPlayTime(0);
            return;
        }// end function

        public function setPlayTime(param1:Number) : void
        {
            playTime = TimeUtil.second2Minute(param1);
            join();
            return;
        }// end function

        private function join() : void
        {
            time.text = playTime + "/" + totalTime;
            return;
        }// end function

        public function setTotalTime(param1:Number) : void
        {
            totalTime = TimeUtil.second2Minute(param1);
            join();
            return;
        }// end function

    }
}
